<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::get('/', 'IndexController@index'); //首页
Route::any('/login', 'IndexController@login'); //登录
Route::get('/logout', 'IndexController@logout'); //退出登录
Route::get('/calculate/count', 'CalculateController@index'); //评测中心
Route::post('/calculate/update', 'CalculateController@update'); //评测提交
Route::get('/date/{date?}', 'MbrDateController@index'); //日期营养
Route::post('/date/update', 'MbrDateController@update'); //日期营养
Route::get('/food/{date}', 'MbrFoodController@index'); //食物添加
Route::post('/foodSearch', 'MbrFoodController@search'); //食物添加
Route::post('/foodEdit', 'MbrFoodController@edit'); //食物添加
Route::post('/foodDelete', 'MbrFoodController@delete'); //食物删除
